<?php

use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;

use App\Http\Controllers\Shop\ConfigTableController;

Route::prefix('shop')->group(function (){
    Route::prefix('config')->controller(ConfigTableController::class)->group(function (){
        Route::post('list', 'index');
        Route::post('add', 'store');
        Route::post('detail', 'show');
        Route::post('modify', 'update');
        Route::post('delete', 'destroy');
    });

});
Route::middleware(['strator.auth'])->group(function (){
    Route::prefix('strator')->group(function (){
        //
        Route::controller(StratorController::class)->group(function (){
            //
            Route::post('list', 'index');
            Route::post('add', 'store');
            Route::post('detail', 'show');
            Route::post('modify', 'update');
            Route::post('delete', 'destroy');
            Route::post('password/modify', 'resetPassword');
        });


    });
});


